/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ecommerce.model;

import java.io.Serializable;
import javax.persistence.*;

/**
 *
 * @author Hadi
 */
@Embeddable
public class CreditCard implements Serializable {

    @Column (name="name", nullable=true)
    private String name;

    @Column (name="number_cc", nullable=true)
    private char number;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public char getNumber() {
        return number;
    }

    public void setNumber(char number) {
        this.number = number;
    }

    
}
